package com.health.common.constant;

/**
 * 用户常量
 *
 * @author <a href="https://github.com/liyupi">程序员鱼皮</a>
 * @from <a href="https://yupi.icu">编程导航知识星球</a>
 */
public interface UserConstant {

    /**
     * 患者
     */
    Integer PATIENT_ROLE = 1;

    /**
     * 医生角色
     */
    Integer DOCTOR_ROLE = 2;

    /**
     * 医院角色
     */
    Integer HOSPITAL_ROLE = 3;

    /**
     * 生产商角色
     */
    Integer PRODUCER_ROLE = 4;

    /**
     * 运输商角色
     */
    Integer TRANSPORTER_ROLE = 5;

    /**
     * 被封号
     */
    String BAN_ROLE = "ban";

    String AUTH_HEADER = "Authorization";
    String USER_ACCOUNT_CLAIM = "userAccount";
    String USER_ID_CLAIM = "id";



    /**
     * redisKey
     */
    String HEALTH_REDIS_KEY = "health";

    public static final String USER_INFO = "user-info";

    public static final String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 各个用户的主键
     */
    public static final String PATIENT_ID = "patient_id";
    public static final String DOCTOR_ID = "doctor_id";
    public static final String HOSPITAL_ID = "hospital_id";

    public static final  String HospitalNotFound = "当前医院不存在";
    public static final  String DoctorNotFound = "当前医生不存在";
    public static final  String PatientNotFound = "当前患者不存在";
    public static final  String UserNotFound = "当前用户不存在";

}
